package com.ruoyi.team.mapper;


import com.ruoyi.team.domain.vo.MgTeam;
import com.ruoyi.team.domain.vo.TeamOrder;
import com.ruoyi.team.domain.vo.TeamUser;
import com.translate.mapper.IBaseMapper;

import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TeamInformationMapper extends IBaseMapper<MgTeam> {
    List<MgTeam> selectTeamList(MgTeam mgTeam);
    
    List<MgTeam> selectTeamListBySign(MgTeam mgTeam);

    MgTeam selectTeamById(@Param("id") Integer id);

    int updateMgTeam(MgTeam data);
    
    /***
     * 更新折扣
     * @param mgTeams
     * @return
     */
    int updateDiscount(List<MgTeam> mgTeams);
    
    
    List<MgTeam> getTeamList(long[] teamIds);
    
    List<MgTeam> selectTeamListByParsePrice(@Param("id") long id, @Param("num") long num);

    List<TeamUser> getUserListByTeamId(@Param("id") Integer id);

    List<TeamOrder> getOrderListByTeamId(@Param("id")Integer id);
}
